﻿<%@ Page Language="C#" MasterPageFile="~/Template/USER.Master" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="BTN04.USER.GioHang" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">
    <asp:GridView ID="gvGioHang" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" DataKeyNames="Masp" ondatabound="gvGioHang_DataBound" 
    onrowdatabound="gvGioHang_RowDataBound" onrowdeleting="gvGioHang_RowDeleting">
        <RowStyle ForeColor="#000066" />
        <Columns>
            <asp:BoundField HeaderText="Sản phẩm" />
            <asp:BoundField HeaderText="Đơn giá" />
            <asp:TemplateField HeaderText="Số lượng">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:TextBox ID="txtSoLuong" runat="server" Text='<%# Eval("SoLuong") %>'></asp:TextBox>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtSoLuong" ValidChars="0123456789">
                    </asp:FilteredTextBoxExtender>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Thành tiền" />
            <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    <div style ="color :White ;">
        <div><asp:Label ID="lbTong" runat="server" Text="Label"></asp:Label></div>
        <div >
            <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" 
                onclick="btnUpdate_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnThanhToan" runat="server" Text="Thanh toán" />
        
        </div>
        
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
